(function(doc, win) {
	var docE1 = doc.documentElement,
		resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
		recalc = function() {
			var clientWidth = docE1.clientWidth;
			if(!clientWidth) return;
			docE1.style.fontSize = 100 * (clientWidth / 320) + 'px';
		};

	if(!doc.addEventListener) return;
	win.addEventListener(resizeEvt, recalc, false);
	doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
import Vue from 'vue';
import App from './App.vue';
import router from './router/router.js';
import $ from 'jquery';
new Vue({
  el: '#container',
  router:router,
  render: h => h(App)
})
$(function () {
	$(window).on('scroll',function(){
			var scrolltop = $('body').scrollTop();
			if (scrolltop>=200) {
				$('#totop').animate({bottom:'10px'},50)
			}else{
				$('#totop').animate({bottom:'-60px'},50);
			}
		})

})
